import request from '../utils/request';

export function roleList() {
  return request(`api/auth/v1.0/role/list`);
}

export function serviceList() {
    return request(`api/auth/v1.0/service/list`);
}

export async function userTypeList(){
  return request('api/auth/v1.0/user_type/list')
}

export async function updateRole(params) {
  return request(`api/auth/v1.0/role?id=${params.id}`, {
    method: 'PUT',
    body: {
      ...params,
    },
  });
}
